/**
 * 
 */
package logic;

/**
 * used to define the constraints for the filter function
 * 
 * @author Jakob Karolus, Kevin Munk
 * @version 1.0
 * 
 */
public class Constraints {

	private int minValue;
	private int maxValue;
	private int minObjects;
	private int maxObjects;
	
	
	

	public Constraints(int minValue, int maxValue, int minObjects,
			int maxObjects) {
		
		// minValue represents the minimal value of an object that can be used to impose a constraint
		// on a filter method such as RucksackTreeBuilder.filter(Constraints).
		this.minValue = minValue;
		// maxValue represents the minimal value of an object that can be used to impose a constraint
		// on a filter method such as RucksackTreeBuilder.filter(Constraints).
		this.maxValue = maxValue;
		// minObjects represents the minimal value of an object that can be used to impose a constraint
		// on a filter method such as RucksackTreeBuilder.filter(Constraints).
		this.minObjects = minObjects;
		// maxObjects represents the minimal value of an object that can be used to impose a constraint
		// on a filter method such as RucksackTreeBuilder.filter(Constraints).
		this.maxObjects = maxObjects;
	}

	/**
	 * Returns the minValue
	 * @return the minValue
	 */
	public int getMinValue() {
		return minValue;
	}



	/**
	 * Returns the maxValue
	 * @return the maxValue
	 */
	public int getMaxValue() {
		return maxValue;
	}



	/**
	 * Returns the minObjects
	 * @return the minObjects
	 */
	public int getMinObjects() {
		return minObjects;
	}



	/**
	 * Returns the maxObjects
	 * @return the maxObjects
	 */
	public int getMaxObjects() {
		return maxObjects;
	}

}
